<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			li{
				font:30px/50px "微软雅黑";
				background: green;
				margin:10px;
			}
		</style>
		<script src="vue.js"></script>
	</head>
	<body>
		<div id="box">
			<input type="button" value="按钮1" onclick='alert(1)' />
			<input type="button" value="按钮2" v-on:click='show()' />
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#box',
				data: {
				   
				},
				methods:{
					show:function(){//方法
						alert(1);
					}
				}
			})
		</script>
	</body>
</html>
